package com.baidu.ai.aip.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 获取token
 *
 * @author zhanglm
 * @date 2024-03-01
 */

public class AiToken extends BaseEntity {

    private int id;

    public Date getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(Date applyDate) {
        this.applyDate = applyDate;
    }

    private Date applyDate;
    private int days;
    private Date expireDate;
    private String token;


    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }

//    public Date getApplyDate() {
//        return applyDate;
//    }
//    public void setApplyDate(Date applyDate) {
//        this.applyDate = applyDate;
//    }

    public int getDays() {
        return days;
    }
    public void setDays(int days) {
        this.days = days;
    }

    public Date getExpireDate() {
        return expireDate;
    }
    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    public String getToken() {
        return token;
    }
    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("applyDate", getApplyDate())
                .append("days", getDays())
                .append("expireDate", getExpireDate())
                .append("token", getToken())
                .toString();
    }

}
